package com.ease.framework.gef4p.figures {
   import com.ease.framework.figures.IFigure;

   /**
    * 用于表示图形上的Label对象.
    *
    * 当Graphical ViewerControl在检测到对ILabelFigure双击或属性编辑操作的时候，就会在Label Layer层创建一个Label TextArea对象，供属性编辑
    *
    * @author huchangcheng
    *
    */
   public interface ILabelFigure extends IFigure {
      function getContainer():ILabelFigureBox;
      function setContainer(box:ILabelFigureBox):void;

      function get text():String;
      function set text(t:String):void;

      /**
       * 此edit x,y点，记录了当前编辑的时候绘制点.
       * @return
       *
       */
      function get editX():Number;
      function set editX(n:Number):void;
      function get editY():Number;
      function set editY(n:Number):void;

      function get editWidth():Number;
      function set editWidth(n:Number):void;
      function get editHeight():Number;
      function set editHeight(n:Number):void;

      function refreash():void;

      function getTextWidth():Number;

      function getTextHeight():Number;

      function get isSelected():Boolean;

      function set isSelected(value:Boolean):void;

   /* 		function get selectionBeginIndex():int;
      function set selectionBeginIndex(value:int):void;
      function get selectionEndIndex():int
    function set selectionEndIndex(value:int):void; */
   }
}